Skip to content

Comments

Pin Anchor version to 0.32.1 instead of using latest#65

Open
S0nee wants to merge 1 commit intomagicblock-labs:mainfrom
S0nee:S0nee-patch-2
Open

Pin Anchor version to 0.32.1 instead of using latest#65
S0nee wants to merge 1 commit intomagicblock-labs:mainfrom
S0nee:S0nee-patch-2

Conversation

@S0nee
Copy link

@S0nee S0nee commented Feb 23, 2026

Replaced avm install latest and avm use latest with the explicitly specified version 0.32.1, which is mentioned at the beginning of the documentation:
image

Updated the installation commands to match the declared Anchor version to avoid potential inconsistencies.

Notes:

I’m not 100% sure this is the intended approach, so I decided to create this as a separate PR instead of combining it with the previous changes in the same file (see related PR: #64).

Summary by CodeRabbit

  • Documentation
    • Updated Anchor installation instructions to use version 0.32.1 instead of the latest version, ensuring consistent setup across environments.

Replaced `avm install latest` and `avm use latest` with the explicitly specified version `0.32.1`, which is mentioned at the beginning of the documentation:


Updated the installation commands to match the declared Anchor version to avoid potential inconsistencies.

### Notes:

I’m not 100% sure this is the intended approach, so I decided to create this as a separate PR instead of combining it with the previous changes in the same file (see related PR: #XXX).
@vercel
Copy link

vercel bot commented Feb 23, 2026

@S0nee is attempting to deploy a commit to the Jonas' projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 23, 2026

Walkthrough

The pull request updates Anchor Framework installation instructions in the README file by replacing dynamic version selection through avm with an explicit pin to version 0.32.1 in both install and use steps.

Changes

Cohort / File(s) Summary
Documentation
anchor-rock-paper-scissor/README.md
Pins Anchor version to 0.32.1 in installation instructions, replacing dynamic latest version selection with fixed version strings.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title accurately describes the main change: pinning Anchor version to 0.32.1 instead of using the latest version, which directly corresponds to the modifications made in the README.md file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
anchor-rock-paper-scissor/README.md (1)

39-42: ⚠️ Potential issue | 🟡 Minor

Pre-existing Solana CLI version mismatch in the install command.

The install URL on Line 41 hard-codes v1.18.0, but the versioning table (Line 19) and prerequisites (Line 28) both declare Solana 2.3.13. A developer following the guide will install the wrong CLI version.

📝 Proposed fix
-sh -c "$(curl -sSfL https://release.solana.com/v1.18.0/install)"
+sh -c "$(curl -sSfL https://release.solana.com/v2.3.13/install)"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@anchor-rock-paper-scissor/README.md` around lines 39 - 42, The README install
command hard-codes "v1.18.0" which conflicts with the documented Solana version
"2.3.13"; update the install URL in the install step (the sh -c "$(curl -sSfL
https://release.solana.com/v1.18.0/install)" line) to use "v2.3.13" (or
reference the same version variable used in the prerequisites/version table) so
the CLI version in the install step matches the declared Solana version.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@anchor-rock-paper-scissor/README.md`:
- Around line 39-42: The README install command hard-codes "v1.18.0" which
conflicts with the documented Solana version "2.3.13"; update the install URL in
the install step (the sh -c "$(curl -sSfL
https://release.solana.com/v1.18.0/install)" line) to use "v2.3.13" (or
reference the same version variable used in the prerequisites/version table) so
the CLI version in the install step matches the declared Solana version.

ℹ️ Review info

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7793064 and 3e5aa8e.

📒 Files selected for processing (1)
  • anchor-rock-paper-scissor/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant